package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.UserInfoDao;
import com.zsoft.domain.UserInfoDomain;
import com.zsoft.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	private UserInfoDao userDao;

	@Override
	public void add(UserInfoDomain user) {
		userDao.add(user);
	}

	@Override
	public void update(UserInfoDomain t) {
		userDao.update(t);
	}

	@Override
	public void saveOrUpdate(UserInfoDomain t) {
		
	}

	@Override
	public List<UserInfoDomain> findList(UserInfoDomain t) {
		List<UserInfoDomain> retList = userDao.getList(t);
		return retList;
	}

	@Override
	public UserInfoDomain getById(Long id) {
		UserInfoDomain domain = userDao.getById(id);
		return domain;
	}

	@Override
	public void deleteById(Long id) {
		userDao.deleteById(id);
	}

	@Override
	public void deleteByExample(UserInfoDomain t) {
		userDao.delete(t);
	}

}
